package com.win.controller;

import com.win.Pet.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private Car car;
    @RequestMapping("/hello")
    public String handle01(){
        return "Hello, Spring Boot!";
    }
    @RequestMapping("/myCar")
    public Car myCar(){
        return car;
    }
}